package com.atm.service.impl;

import com.atm.dao.RunMessageDao;
import com.atm.pojo.RunMessage;
import com.atm.service.RunMessageService;

import java.util.List;

public class RunMessageServiceImpl implements RunMessageService {
    private RunMessageDao runMessageDao=new RunMessageDao();
    @Override
    public void addRunMessage(RunMessage runMessage) {
        runMessageDao.addRunMessage(runMessage);
    }
    @Override
    public List<RunMessage> findAllDetails(String icno) {
        return runMessageDao.findAllDetails(icno);
    }

    @Override
    public List<RunMessage> findRunMessageByPage(String icno,int page, int pageSize) {
        return runMessageDao.findRunMessageByPage(icno,page, pageSize);
    }
}
